<template>
	<view class="page-height">
		<view class="page-content">
			<image src="@/static/images/logo.png" class="logo"></image>
			<text class="name">心喜阅售后</text>

		</view>
		<u-toast ref="uToast"></u-toast>
	</view>
</template>
<script>
	export default {
		data() {
			return {

			};
		},
		mounted() {
			setTimeout(() => {
				this.checkLoginStatus()
			}, 1600)
		},

		methods: {
			checkLoginStatus() {
				if (this.$store.state.token && this.user) {
					//已登录
					uni.switchTab({
						url: "/pages/home/index"
					})
				} else {
					//未登录
					uni.reLaunch({
						url: "/pages/login/login-pass"
					})
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page-height {
		background: #ffffff;
	}

	.page-content {
		display: flex;
		flex-direction: column;
		position: relative;
		z-index: 1;
	}

	.logo {
		margin: 40% auto 0;
		width: 210rpx;
		height: 210rpx;
	}

	.name {
		text-align: center;
		font-size: 50rpx;
		color: #333333;
		margin-top: 70rpx;
	}
</style>